#include <iostream>
using namespace std;
#include <iomanip>
void encryption (char a[], int size);
void decrypt (char a[], int size);

int main()
{
	char msg[] = "I am Tomoto";
	int size = sizeof(msg)/sizeof(char);
	encryption (msg, size);
	cout << "The original messages are: " << endl;
    decrypt (msg, size);
	return 0;
}

void encryption(char a[], int size)// each character to  move a bit.
{
	for (int i = 0; i < size-1; i++)
	{
		if (a[i] == ' ')
		{
			a[i] = a[i];
		}
		else
		{
			a[i] = a[i] + 1;
		}
		cout << a[i];
	}
	cout << endl;
}

void decrypt (char a[], int size)//each character to move forward a bit.
{
	for (int i = 0; i < size-1; i++)
	{
		if (a[i] == ' ')
		{
			a[i] = a[i];
		}
		else
		{
			a[i] = a[i] - 1;
		}
		cout << a[i];
	}
	cout << endl;
}
